<template>
	<scroll-view v-if="showBox" @scroll="scroll" class="detail" style="height: 100vh;"
		:scroll-y="(showtow || show) == true ?false:true">
		<!-- <view @scroll.native="scroll" class="detail"
			:style="(showtow || show) == true ?'height:100vh;overflow:hidden;':'height:100vh;overflow-x:hidden'"> -->
		<view class="detail_title">
			<view class="detail_title_missionBoard"></view>
			<view :style="'background-color: rgba(255,255,255,'+(scrollBG >= 1?1:scrollBG)+');'"
				class="detail_title_content">
				<view @click="backReturn" class="detail_title_content_left">
					<view class="detail_title_content_left_img">
						<image src="../../../static/home/search_left.png" mode="widthFix"></image>
					</view>
					<!-- <view class="detail_title_content_left_input">
						<u-search placeholder="搜索" :showAction="false" class="detail_title_content_left_inputs"
							:clearabled="true"></u-search>
					</view> -->
				</view>
				<view class="detail_title_content_right">
					<!-- <view class="detail_title_content_right_tab">
						<image src="../../../static/home/Mallshoppingcart.png" mode=""></image>
					</view>
					<view class="detail_title_content_right_tab">
						<image src="../../../static/home/Mallshare.png" mode=""></image>
					</view> -->
				</view>
			</view>
		</view>
		<view class="detail_bannerBox">
			<u-swiper height="754upx" indicator indicatorMode="dot" keyName="url" circular
				:list="detail.imageInfo.imageList">
			</u-swiper>
		</view>
		<view class="detail_Introduction">

			<view class="detail_Introduction_top_xiaoliang">
				<view class="detail_Introduction_top_xiaoliang_list">
					<view class="detail_Introduction_top_xiaoliang_list_left quanhoujiaBox">
						<view v-if="detail.pinGouInfo.pingouPrice" class="quanhoujia">
							<text>拼购价</text><text class="quanhoujia_">￥</text>
							<text>{{Number(detail.pinGouInfo.pingouPrice)}}</text>
						</view>
						<view v-if="!detail.pinGouInfo.pingouPrice" class="quanhoujia">
							<text>原价</text><text class="quanhoujia_">￥</text>
							<text>{{Number(detail.priceInfo.price)}}</text>
						</view>
						<view v-if="detail.pinGouInfo.pingouPrice" class="yuanjia">
							<text>原价</text><text>￥{{Number(detail.priceInfo.price)}}</text>
						</view>
					</view>
					<view class="detail_Introduction_top_xiaoliang_list_right xiaoliang">
						<text>好评率</text><text>{{Number(detail.goodCommentsShare)}}%</text>
					</view>
				</view>
				<!-- <view style="margin-top: 20upx;" class="detail_Introduction_top_xiaoliang_list">
					<view class="detail_Introduction_top_xiaoliang_list_left yongjin">
						<text>佣金率</text> <text>{{Number(detail.commissionInfo.commissionShare)}}%</text>
					</view>
					<view class="detail_Introduction_top_xiaoliang_list_right youhuiquan">
						<text>佣金</text> <text>￥{{Number(detail.commissionInfo.commission)}}</text>
					</view>
				</view> -->
			</view>
			<view class="detail_Introduction_top">
				<view class="detail_Introduction_top_title">
					{{detail.skuName}}
				</view>
				<!-- <view class="detail_Introduction_top_deteils">
					{{detail.jianjie}}
				</view> -->
				<view style="margin-top:20upx;font-size: 18upx;color: #787878;">
					{{detail.shopInfo.shopName}}
				</view>
			</view>
			<!-- <view class="detail_Introduction_shop">
				<view class="detail_Introduction_shop_left">
					<image :src="detail.shopInfo.shopLabel" mode=""></image>
				</view>
				<view class="detail_Introduction_shop_right">
					<view class="detail_Introduction_shop_right_left">
						<view class="detail_Introduction_shop_right_title">
							{{detail.shopInfo.shopName}}
						</view>

					</view>
					<view class="detail_Introduction_shop_right_right">
						<view class="detail_Introduction_shop_right_right_list">
							<text>宝贝描述</text><text>4.5</text>
						</view>
						<view class="detail_Introduction_shop_right_right_list">
							<text>卖家服务</text><text>4.9</text>
						</view>
						<view class="detail_Introduction_shop_right_right_list">
							<text>物流服务</text><text>4.9</text>
						</view>
					</view>
				</view>
			</view> -->
		</view>
		<!-- 	<view class="detail_describe">
			商品详情
		</view> -->
		<!-- <view class="detail_detail">
			<image class="detail_detail_img" v-for="(item,index) in form.detailsImages" :src="item" mode="widthFix">
			</image>
		</view> -->
		<view v-if="detail" class="detail_bottomBox">
			<view class="detail_bottomBox_left">
				<view @click="Home" class="detail_bottomBox_left_list">
					<view class="detail_bottomBox_left_list_img">
						<image src="/static/home/detailHome.png" mode="heightFix"></image>
					</view>
					<view class="detail_bottomBox_left_list_text">
						首页
					</view>
				</view>
				<view @click="shareFun" class="detail_bottomBox_left_list">
					<view class="detail_bottomBox_left_list_img">
						<image src="/static/home/fenxiang.png" mode="heightFix"></image>
					</view>
					<view class="detail_bottomBox_left_list_text">
						分享
					</view>
				</view>
			</view>
			<view class="detail_bottomBox_right">
				<view @click="shareFun" class="detail_bottomBox_right_left">
					<view>
						<view class="detail_bottomBox_right_right_top">
							分享约赚
						</view>
						<view class="detail_bottomBox_right_right_bottom">
							￥{{fenxiangbili()}}
						</view>
					</view>
				</view>
				<view @click="protocolModey = true" class="detail_bottomBox_right_right">
					<view>
						<view class="detail_bottomBox_right_right_top">
							自买约省
						</view>
						<view class="detail_bottomBox_right_right_bottom">
							￥{{zigoushengqian()}}
						</view>
					</view>
				</view>
			</view>
			<!-- <button @click="shareFun" class="detail_bottomBox_reservation">
				复制分享
			</button>
			<button @click="confirm" class="detail_bottomBox_panicBuying">
				立即购买
			</button> -->
		</view>
		<u-popup :show="show" :round="true" @close="close" @open="open" mode="bottom">
			<view class="modeBox">
				<scroll-view :cancelable="false" style="height: calc(100% );" scroll-y="true">
					<view v-for="(item,index) in Specification" class="modeBox_listbox">
						<view class="modeBox_listbox_title">
							{{item.name}}
						</view>
						<view class="modeBox_listbox_content">
							<view v-for="(itemt,indext) in item.goodsSpecificationsList"
								:class="SpecificaObj[item.id] == itemt.id?'modeBox_listbox_content_tab_active':''"
								@click="SpecificaObj[item.id] = itemt.id;InStock(item,itemt,)"
								class="modeBox_listbox_content_tab"
								:style="itemt.image?'width:calc((100% - 60upx) / 3)':''">
								<view v-if="itemt.num == 0" class="OutOfStock">
									缺货
								</view>
								<view v-if="itemt.image" class="modeBox_listbox_content_tab_imageBox">
									<view class="modeBox_listbox_content_tab_imageBox_img">
										<image :src="itemt.image" mode=""></image>
									</view>
									<view class="modeBox_listbox_content_tab_imageBox_text">
										{{itemt.value}}
									</view>
								</view>
								<view v-if="!itemt.image" class="modeBox_listbox_content_tab_textBro">
									{{itemt.value}}
								</view>
							</view>
						</view>
					</view>
				</scroll-view>
				<view class="detail_bottomBox">
					<view class="detail_bottomBox_left">
						<view @click="Home" class="detail_bottomBox_left_list">
							<view class="detail_bottomBox_left_list_img">
								<image src="/static/home/detailHome.png" mode="heightFix"></image>
							</view>
							<view class="detail_bottomBox_left_list_text">
								首页
							</view>
						</view>
						<view @click="shareFun" class="detail_bottomBox_left_list">
							<view class="detail_bottomBox_left_list_img">
								<image src="/static/home/fenxiang.png" mode="heightFix"></image>
							</view>
							<view class="detail_bottomBox_left_list_text">
								分享
							</view>
						</view>
					</view>
					<view class="detail_bottomBox_right">
						<view @click="shareFun" class="detail_bottomBox_right_left">
							<view>
								<view class="detail_bottomBox_right_right_top">
									分享约赚
								</view>
								<view class="detail_bottomBox_right_right_bottom">
									￥{{fenxiangbili()}}
								</view>
							</view>
						</view>
						<view @click="protocolModey = true" class="detail_bottomBox_right_right">
							<view>
								<view class="detail_bottomBox_right_right_top">
									自买约省
								</view>
								<view class="detail_bottomBox_right_right_bottom">
									￥{{zigoushengqian()}}
								</view>
							</view>
						</view>
					</view>
					<!-- <button @click="shareFun" class="detail_bottomBox_reservation">
						复制分享
					</button>
					<button @click="confirm" class="detail_bottomBox_panicBuying">
						立即购买
					</button> -->
				</view>
			</view>
		</u-popup>

		<u-popup :show="showtow" :round="true" @close="showtow = false" @open="open" mode="bottom">
			<view class="modeBox" style="padding-bottom:20upx;">
				<scroll-view :cancelable="false" style="height: 100%;" scroll-y="true">
					<view v-for="(item,index) in form.list" class="modeBox_list">
						<view class="modeBox_list_left">
							{{item.name}}
						</view>
						<view class="modeBox_list_right">
							{{item.value}}
						</view>
					</view>
				</scroll-view>
			</view>
		</u-popup>
		<!-- </view> -->

		<u-modal confirmColor="#ff731f" confirmText="确定" @cancel="protocolModey = false" :showCancelButton="true"
			@confirm="confirm();protocolModey = false" :show="protocolModey" title="是否打开京东并继续">
			<view>
				接下来需要跳转到京东继续
			</view>
		</u-modal>
		<poster v-if="!detail.pinGouInfo.pingouPrice" ref="poster" :mainImages="detail.imageInfo.imageList[0].url "
			:memberPrice="Number(detail.priceInfo.price)" :name="detail.skuName">
		</poster>
		<poster v-if="detail.pinGouInfo.pingouPrice" :memberPrice="Number(detail.pinGouInfo.pingouPrice)" ref="poster"
			:mainImages="detail.imageInfo.imageList[0].url " :price="Number(detail.priceInfo.price)"
			:name="detail.skuName"></poster>
		<!-- <view v-if="!detail.pinGouInfo.pingouPrice" class="quanhoujia">
			<text>原价</text><text class="quanhoujia_">￥</text>
			<text>{{Number(detail.priceInfo.price)}}</text>
		</view>
		<view v-if="detail.pinGouInfo.pingouPrice" class="yuanjia">
			<text>原价</text><text>￥{{Number(detail.priceInfo.price)}}</text>
		</view> -->
	</scroll-view>
</template>

<script>
	import poster from "@/components/poster/poster.vue"
	import {
		bootjingdongdetail,
		bootjingdongorder,
		invitationcode,
		bootsysConfigcommissionpercent
	} from '@/api/home'
	export default {
		data() {
			return {
				protocolModey: false,
				form: {},
				user: JSON.parse(uni.getStorageSync('user')),
				scrollBG: 0,
				show: false,
				showtow: false,
				Specification: [],
				SpecificaObj: {},
				id: '',
				imges: [],
				detail: {},
				showBox: false,
				bilv: 0
			}
		},
		onLoad(data) {
			this.id = data.id;
			// this.bootgoodsselectdetail(data.id)
			// this.bootgoodsselectgoodsSpecifications(data.id)
			this.bootjingdongdetail()
			this.bootsysConfigcommissionpercent()
		},
		methods: {
			Home() {
				uni.switchTab({
					url: '/pages/index/index'
				});
			},
			bootsysConfigcommissionpercent() {
				bootsysConfigcommissionpercent().then(res => {
					this.bilv = Number(res.data) / 100
					console.log(this.bilv)
				})
			},
			fenxiangbili() {
				let hongbiao = ''
				if (this.detail.pinGouInfo.pingouPrice) {
					hongbiao = this.detail.pinGouInfo.pingouPrice
				}
				if (!this.detail.pinGouInfo.pingouPrice) {
					hongbiao = this.detail.priceInfo.price
				}
				let num = 0
				if (this.detail.commissionInfo.commissionShare >= 15) {
					num = ((this.detail.commissionInfo.commission) * this.bilv).toFixed(2);
				} else {
					num = (Number(this.detail.commissionInfo.commission) * this.bilv)
				}
				if (this.user.isVip == 1) {
					return (Number(num) * 2).toFixed(2);
				} else {
					return Number(num).toFixed(2)
				}

				// return 0
			},
			zigoushengqian() {
				let hongbiao = ''
				if (this.detail.pinGouInfo.pingouPrice) {
					hongbiao = this.detail.pinGouInfo.pingouPrice
				}
				if (!this.detail.pinGouInfo.pingouPrice) {
					hongbiao = this.detail.priceInfo.price
				}
				let num = 0
				if (this.detail.commissionInfo.commissionShare >= 15) {
					num = ((this.detail.commissionInfo.commission) * this.bilv).toFixed(2);
				} else {
					num = (Number(this.detail.commissionInfo.commission) * this.bilv)
				}
				return Number(num).toFixed(2)
			},
			shareFun() {
				invitationcode().then(res => {
					console.log(res)
					if (res.success == 1) {
						this.$refs.poster.openshare(
							'http://ryngzh.hisway365.com/#/pages/index/JDdetail/JDdetail?id=' + this.id +
							'&type=2&invitacode=' + res
							.data)
						// uni.setClipboardData({
						// 	data: 'http://118.190.159.217:8090/#/?id=' + this.id + '&type=2&invitacode=' + res
						// 		.data,
						// 	showToast: false,
						// 	success: function() {
						// 		uni.showToast({
						// 			title: '分享地址复制成功快去分享给你的好友吧~',
						// 			duration: 2000,
						// 			icon: 'none'
						// 		});
						// 	}
						// });
					} else {
						uni.showToast({
							title: res.message,
							duration: 2000,
							icon: 'none'
						});
					}
				})



			},
			bootjingdongorder() {
				bootjingdongorder(this.id).then(res => {
					if (res.success == 1) {
						// uni.setClipboardData({
						// 	data: res.data.shortURL,
						// 	showToast: false,
						// 	success: function() {
						// 		uni.showToast({
						// 			title: '转链接已复制',
						// 			duration: 2000,
						// 			icon: 'none'
						// 		});
						// 	}
						// });
						// 淘宝的商品链接，换成需要访问的地址
						let url = res.data.shortURL;
						let openUrl = url;
						var jdurl = res.data.shortURL
						let data = {
							category: 'jump',
							des: 'getCoupon',
							url: jdurl,
							sourceType: 'PCUBE_CHANNEL'
						}
						openUrl = `openApp.jdMobile://virtual?params=${encodeURI(JSON.stringify(data))}`;
						// 因为 url 一般是从其它地方获取的，所以这里要将 http 和 https 删去
						// 也可以直接输入 https:// 之后的内容，则不需要此步判断，直接调用 plus.runtime.openURL
						// if (url.substr(0, 5) === 'https') {
						// 	openUrl = `openApp.jdMobile://${url.substr(8)}`;
						// } else if (url.substr(0, 4) === 'http') {
						// 	openUrl = `openApp.jdMobile://${url.substr(7)}`;
						// }
						// plus.runtime.openURL(url);
						plus.runtime.openURL(openUrl, function(res) {
							uni.showModal({
								content: '本机未检测到对应客户端，是否打开浏览器访问页面？',
								success: function(res) {
									if (res.confirm) {
										plus.runtime.openURL(url);
									}
								}
							});
						});
					} else {
						uni.showToast({
							title: res.message,
							duration: 2000,
							icon: 'none'
						});
					}
				})
			},
			bootjingdongdetail() {
				bootjingdongdetail(this.id).then(res => {
					console.log(res)
					if (res.success == 1) {
						this.detail = res.data
						this.showBox = true
					} else {
						uni.showToast({
							title: res.message,
							duration: 2000,
							icon: 'none'
						});
						if (res.code == 3001001){
							setTimeout(()=>{
								this.backReturn()
							},0)
						}
					}
				})
			},

			shoppingCart() {
				let keys = Object.keys(this.SpecificaObj)
				if (!keys.length) {
					return
				}
				let type = true;
				let arr = [];
				let teost = [];
				let obj = {}
				let goodsSpecificationsValue = []
				keys.forEach(itme => {
					let em = this.SpecificaObj[itme]
					if (!em) {
						type = false
						arr.push(itme)
					} else {
						for (var i = 0; i < this.Specification.length; i++) {
							let ele = this.Specification[i]
							for (var p = 0; p < ele.goodsSpecificationsList.length; p++) {
								let element = ele.goodsSpecificationsList[p];
								if (element.id == em) {
									if (element.num <= 0) {
										uni.showToast({
											title: ele.name + '：' + element.value + '目前是缺货状态',
											duration: 2000,
											icon: 'none'
										});
									} else {
										goodsSpecificationsValue.push({
											name: element.value,
											value: em,
											boxName: ele.name
										})
									}
								}
							}
						}

					}
				})
				for (var i = 0; i < arr.length; i++) {
					let tm = arr[i]
					let queryData = this.Specification.filter(function(fp) {
						return fp.id === tm
					})
					teost.push(queryData[0].name)
				}
				if (!type) {
					uni.showToast({
						title: '请选择 ' + teost.join(' '),
						duration: 2000,
						icon: 'none'
					});
					this.show = true
					return
				}
				obj.goodsId = this.form.id;
				obj.goodsSpecificationsValue = goodsSpecificationsValue
				let goodsSpecificationsValuearr = []
				for (var i = 0; i < obj.goodsSpecificationsValue.length; i++) {
					let elem = obj.goodsSpecificationsValue[i]
					goodsSpecificationsValuearr.push(elem.value)
				}
				let queryObj = {
					goodsId: this.id,
					goodsSpecificationsIds: goodsSpecificationsValuearr.join(','),
					num: 1
				}
				console.log(queryObj)
				bootshoppingCartinsert(queryObj).then(res => {
					uni.showToast({
						title: res.message,
						duration: 2000,
						icon: 'none'
					});
				})
			},
			confirm() {
				this.bootjingdongorder()
			},
			InStock(e, t) {
				this.$forceUpdate()
				let keys = Object.keys(this.SpecificaObj)
				let arr = [];
				for (var i = 0; i < keys.length; i++) {
					let elemt = keys[i]
					if (this.SpecificaObj[elemt]) {
						arr.push(this.SpecificaObj[elemt])
					}
				}
				bootgoodsSpecificationsNumselectNum(this.id, arr).then(res => {
					this.Specification = res.data
				})
			},
			scroll(e) {
				this.scrollBG = (e.detail.scrollTop * 0.03) / 10
			},
			bootgoodsselectgoodsSpecifications(id) {
				bootgoodsselectgoodsSpecifications(id).then(res => {
					console.log(res);
					res.data.forEach(item => {
						// item.CheckId = null
						this.SpecificaObj[item.id] = ''
					})
					this.Specification = res.data
				})
			},
			open() {

			},
			close(open) {
				this.show = false
			},
			bootgoodsselectdetail(id) {
				bootgoodsselectdetail(id).then(res => {
					res.data.bannerImages = res.data.bannerImages.split('*')
					res.data.detailsImages = res.data.detailsImages.split('*')
					this.form = res.data
				})
			},
			backReturn() {
				uni.navigateBack({});
			},
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f7f7f7;
	}

	* {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}

	.detail {
		padding-top: var(--status-bar-height);
		padding-bottom: 100upx;

		.detail_title {
			position: fixed;
			top: 0;
			width: 100%;
			left: 0;
			z-index: 1;

			.detail_title_missionBoard {
				background-image: linear-gradient(to right, #FE3D47, #FC773D);
				height: var(--status-bar-height);
			}

			.detail_title_content {
				display: flex;
				padding: 10upx 0;
				height: 70upx;

				.detail_title_content_left {
					display: flex;
					align-items: center;
					width: calc(100% - 50upx - 72upx - 72upx - 12upx - 8upx);
					margin-right: 50upx;

					.detail_title_content_left_img {
						font-size: 0;
						padding: 0 28upx;

						image {
							width: 18upx;
						}
					}

					.detail_title_content_left_input {
						width: calc(100% - 28upx - 28upx - 18upx);

						.detail_title_content_left_inputs {
							/deep/ .u-search__content__input--placeholder {
								background-color: rgba(0, 0, 0, 0) !important;
							}

							/deep/ .u-search__content {
								background-color: rgba(0, 0, 0, 0.49) !important;

								.u-search__content__input {
									background-color: rgba(0, 0, 0, 0) !important;

									.uni-input-input {
										color: #FFFFFF;
									}
								}

								.u-icon__icon {
									color: rgba(255, 255, 255, 0.5) !important;
								}

							}

							/deep/ .u-search__content__input {
								background-color: rgba(0, 0, 0, 0) !important;
							}
						}
					}
				}

				.detail_title_content_right {
					display: flex;
					align-items: center;

					.detail_title_content_right_tab {
						width: 72upx;
						height: 72upx;
						font-size: 0;
						margin-right: 12upx;

						&:last-child {
							margin-right: 8upx;
						}

						image {
							width: 100%;
							height: 100%;
						}
					}
				}
			}
		}

		.detail_bannerBox {
			width: 100%;
			height: 754upx;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.detail_Introduction {
			padding: 20upx;

			.detail_Introduction_top {
				background-color: #fff;
				border-radius: 10upx;
				padding: 26upx 30upx;
				margin-top: 20upx;

				.detail_Introduction_top_title {
					font-size: 34upx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #000;
					line-height: 48upx;
				}

				.detail_Introduction_top_text {
					display: flex;
					align-items: center;

					.member_price {
						font-size: 22upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: rgba(0, 0, 0, 0.9);
						line-height: 32upx;
					}

					.member_Specification {
						color: #ED2525;
						font-size: 22upx;
						margin-left: 6upx;
					}

					.member_num {
						font-size: 36upx;
						font-family: PingFangSC-Semibold, PingFang SC;
						font-weight: 600;
						color: #ED2525;
						line-height: 50upx;
						margin-left: 8upx;
					}

					.Original_price {
						font-size: 22upx;
						margin-left: 6upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: rgba(0, 0, 0, 0.2);
						line-height: 32upx;
					}

					.Original_num {
						font-size: 22upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: rgba(0, 0, 0, 0.2);
						line-height: 32upx;
						margin-left: 10upx;
						text-decoration: line-through;
					}
				}

				.detail_Introduction_top_deteils {
					min-height: 90upx;
					font-size: 26upx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: rgba(0, 0, 0, 0.29);
					margin-top: 6upx;
					line-height: 36upx;
				}

			}

			.detail_Introduction_bottom {
				margin-top: 20upx;
				padding: 38upx 32upx;
				background-color: #FFFFFF;
				border-radius: 10upx;

				.detail_Introduction_bottom_tabs {
					display: flex;
					align-items: center;
					padding-bottom: 20upx;

					&:last-child {
						padding: 0;
					}

					.detail_Introduction_bottom_tabs_left {
						font-size: 22upx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: rgba(0, 0, 0, 0.29);
						line-height: 32upx;
					}

					.detail_Introduction_bottom_tabs_right {
						width: calc(100% - 50upx - 38upx);
						margin-left: 38upx;

						/deep/ .u-cell__body {
							padding: 0;

							.u-cell__title-text span {
								font-size: 22upx;
								font-family: PingFangSC-Regular, PingFang SC;
								font-weight: 400;
								color: rgba(0, 0, 0, 0.9);
								line-height: 32upx;
							}
						}
					}
				}
			}

			.detail_Introduction_top_xiaoliang {
				background-color: #FFFFFF;
				border-radius: 10upx;

				.detail_Introduction_top_xiaoliang_list {
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 0 30upx;
					padding-top: 26upx;

					&:last-child {
						padding-bottom: 26upx;
						// border-top: 2upx dashed #eee;
					}

					.detail_Introduction_top_xiaoliang_list_left.quanhoujiaBox {
						display: flex;
						align-items: center;

						.quanhoujia {
							.quanhoujia_ {
								color: #db3a00;
								margin: 0 6upx;
								font-size: 18upx;
							}

							text {
								&:first-child {
									font-size: 18upx;
									color: #787878;
								}

								&:last-child {
									font-size: 40upx;
									color: #db3a00;
								}
							}
						}

						.yuanjia {
							margin-left: 20upx;

							text {
								&:first-child {
									font-size: 18upx;
									color: #787878;
								}

								&:last-child {
									font-size: 18upx;
									color: #666;
									text-decoration: line-through;
									padding-left: 6upx;
								}
							}
						}
					}

					.detail_Introduction_top_xiaoliang_list_right.xiaoliang {
						display: flex;
						align-items: center;

						text {
							&:first-child {
								font-size: 18upx;
								color: #787878;
							}

							&:last-child {
								font-size: 24upx;
								color: #fc903d;
								margin-left: 6upx;
							}
						}
					}

					.yongjin {

						text {
							&:first-child {
								font-size: 32upx;
								color: #787878;
							}

							&:last-child {
								font-size: 40upx;
								color: #218ACB;
								margin-left: 20upx;
							}
						}
					}

					.youhuiquan {
						text {
							&:first-child {
								font-size: 32upx;
								color: #787878;
							}

							&:last-child {
								font-size: 40upx;
								color: #DB3A00;
								margin-left: 10upx;
							}
						}
					}
				}
			}

			.detail_Introduction_shop {
				background-color: #fff;
				border-radius: 10upx;
				padding: 44upx 26upx;
				margin-top: 20upx;
				display: flex;
				align-items: center;

				.detail_Introduction_shop_left {
					font-size: 0;

					image {
						width: 96upx;
						height: 96upx;
						border-radius: 14upx;
						font-size: 0;
					}
				}

				.detail_Introduction_shop_right {
					width: calc(100% - 106upx - 24upx);
					margin-left: 24upx;
					display: flex;
					justify-content: space-between;
					align-items: center;

					.detail_Introduction_shop_right_left {
						.detail_Introduction_shop_right_title {
							white-space: nowrap;
							line-height: 40upx;
							overflow: hidden;
							text-overflow: ellipsis;
							font-size: 34upx;
							color: rgb(51, 51, 51);
							font-weight: bold;
							max-width: 384upx;
						}
					}

					.detail_Introduction_shop_right_right {
						.detail_Introduction_shop_right_right_list {
							display: flex;
							align-items: center;
							color: #333;
							font-size: 10upx;

							text {
								&:last-child {
									margin-left: 6upx;
								}
							}
						}
					}
				}

			}
		}



		.detail_describe {
			font-size: 22upx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: rgba(0, 0, 0, 0.3);
			line-height: 32upx;
			display: flex;
			justify-content: center;
			align-items: center;
			padding: 30upx;
		}

		.detail_detail {
			display: flex;
			width: 100%;
			flex-wrap: wrap;

			.detail_detail_img {
				width: 100%;
			}
		}

		.detail_bottomBox {
			width: 100%;
			height: 100upx;
			background-color: #FFFFFF;
			// padding: 24upx 38upx;
			position: fixed;
			bottom: 0;
			left: 0;
			display: flex;


			.detail_bottomBox_left {
				flex: 1;
				display: flex;
				justify-content: center;
				align-items: center;

				.detail_bottomBox_left_list {
					text-align: center;

					&:last-child {
						margin-left: 59upx;
					}

					.detail_bottomBox_left_list_img {
						height: 40upx;

						image {
							height: 100%;
						}
					}

					.detail_bottomBox_left_list_text {
						line-height: 27upx;
						margin-top: 3upx;
						font-size: 20upx;
						color: #141414;
					}
				}

			}

			.detail_bottomBox_right {
				width: 444upx;
				display: flex;

				.detail_bottomBox_right_left {
					width: 222upx;
					background-image: linear-gradient(0deg, #FFA800, #FFC002);
					display: flex;
					align-items: center;
					justify-content: center;
					text-align: center;

					.detail_bottomBox_right_right_top {
						font-size: 28upx;
						font-family: PingFang SC;
						color: #FFFFFF;
					}

					.detail_bottomBox_right_right_bottom {
						font-size: 20upx;
						font-family: PingFang SC;
						color: #FFFFFF;
					}
				}

				.detail_bottomBox_right_right {
					width: 222upx;
					background-image: linear-gradient(0deg, #FF6E02, #FC6758);
					display: flex;
					align-items: center;
					justify-content: center;
					text-align: center;

					.detail_bottomBox_right_right_top {
						font-size: 28upx;
						font-family: PingFang SC;
						color: #FFFFFF;
					}

					.detail_bottomBox_right_right_bottom {
						font-size: 20upx;
						font-family: PingFang SC;
						color: #FFFFFF;
					}
				}
			}














			.detail_bottomBox_reservation {
				width: 50%;
				background-color: #FFC002;
				// background: #FFEBCC;
				border-radius: 46upx 0px 0px 46upx;
				display: flex;
				align-items: center;
				justify-content: center;
				border: none;
				font-size: 32upx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				// color: rgba(0, 0, 0, 0.72);
				color: #FFFFFF;
				line-height: 22upx;

				&::after {
					content: '';
					display: none;
				}
			}

			.detail_bottomBox_panicBuying {
				background: #ED2525;
				border-radius: 0px 46upx 46upx 0px;
				width: 50%;
				display: flex;
				align-items: center;
				justify-content: center;

				font-size: 32upx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #FFFFFF;
				line-height: 44upx;


				&::after {
					content: '';
					display: none;
				}
			}
		}
	}

	.modeBox {
		height: 70vh;
		padding: 32upx;
		padding-bottom: 100upx;

		.modeBox_list {
			display: flex;
			padding: 32upx 0;
			border-bottom: 1px solid #f2f2f2;

			.modeBox_list_left {
				width: 200upx;
				color: #9c9c9c;
				font-size: 32upx;
			}

			.modeBox_list_right {
				width: calc(100% - 200upx);
				color: #555555;
				font-size: 32upx;
			}
		}

		.modeBox_listbox {
			margin-bottom: 30upx;

			&:last-child {
				margin: 0;
			}

			.modeBox_listbox_title {
				color: #000000;
				font-weight: 700;
				font-size: 30upx;
			}

			.modeBox_listbox_content {
				display: flex;
				flex-wrap: wrap;

				.modeBox_listbox_content_tab {
					margin-top: 20upx;
					margin-right: 20upx;
					font-size: 32upx;
					color: #333333;
					background-color: #f2f2f2;
					border: 2upx solid rgba(0, 0, 0, 0);
					position: relative;
					border-radius: 10upx;

					.OutOfStock {
						position: absolute;
						right: 0;
						top: 0;
						z-index: 1;
						font-size: 24upx;
						transform: translate(20%, -80%);
						background-color: #f2f2f2;
						color: #333333;
						padding: 10upx 20upx;
						border-radius: 15upx 0 15upx 0;
					}

					.modeBox_listbox_content_tab_textBro {
						padding: 10upx 20upx;
					}

					.modeBox_listbox_content_tab_imageBox {
						width: 100%;
						overflow: hidden;
						border-radius: 10upx 10upx 0 0;

						.modeBox_listbox_content_tab_imageBox_img {
							width: 100%;
							height: 200upx;
							font-size: 0;

							image {
								width: 100%;
								height: 100%;
							}
						}

						.modeBox_listbox_content_tab_imageBox_text {
							padding: 10upx 20upx;
							text-align: center;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}
					}
				}

				.modeBox_listbox_content_tab_active {
					color: #f3574a;
					background-color: #fbedea;
					border: 2upx solid #f3574a;

					.OutOfStock {
						color: #FFFFFF;
						background-color: #f3574a;
					}
				}
			}
		}
	}
</style>
